package com.erp.common.web;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;

import com.erp.framework.controller.form.SimpleUserStyleForm;

public class UploadFileForm extends SimpleUserStyleForm {
    private HashMap params = new HashMap();
    private String contentType = "";
    private byte[] content;
    private FormFile theFile;

    public HashMap getParams() {
        return params;
    }

    public String getContentType() {
        return contentType;
    }

    public byte[] getContent() {
        return content;
    }

    public FormFile getTheFile() {
        return theFile;
    }

    public void setParams(HashMap params) {
        this.params = params;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public void setTheFile(FormFile theFile) {
        this.theFile = theFile;
    }

    public void otherReset(ActionMapping mapping, HttpServletRequest request) {
        String emptyString = "";
        pageEvent = emptyString;
    }
}
